home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Viewer How-To CD / Microsoft Multimedia Viewer How-To CD.iso / mvsample / progsamp / eplist / eplist.h < prev    next >
C/C++ Source or Header  |  1993-03-21  |  2KB  |  77 lines

  1. // EPLIST.H
  2.  
  3. #define ID_LISTBOX 1
  4.  
  5. #define LISTERR_NOVWRINFO 100
  6. #define LISTERR_MEMORY    101
  7. #define LISTERR_SYNTAX    102
  8. #define LISTERR_CREATEFAILED 103
  9. #define LISTERR_BAGGAGE   104
  10. #define LISTERR_NOVWR     105
  11. #define LISTERR_TOOMANY   106
  12.  
  13. #define RGBBlack    RGB(0, 0, 0)
  14. #define RGBWhite    RGB(255, 255, 255)
  15. #define RGBLtGray   RGB(192,192,192)
  16. #define RGBDkGray   RGB(84,84,84)
  17.  
  18. #define MAX_LIST 100
  19.  
  20. typedef struct 
  21. {
  22.     int    iWidth, iHeight, iLines;
  23.  
  24.     LPSTR  lpszText;
  25.  
  26.     LPSTR  alpszText[MAX_LIST];
  27.     LPSTR  alpszCommand[MAX_LIST];
  28.  
  29.     int    nCurSel, nTop, nItems;
  30.  
  31.     HWND   hwndScroll, hwndPane;
  32.  
  33.     HFONT  hfontLB;
  34.     int    iLineSpace;
  35.  
  36.     char   szAuthorData[128];
  37.     char   szListFilename[13];
  38.     char   szFont[LF_FACESIZE];
  39.     int    iFontSize;
  40. } LISTINFO, FAR *LPLISTINFO;
  41.  
  42. extern HANDLE ghModule;
  43.  
  44. // For MVBTASK module
  45.  
  46. #define MAX_WINDOWS 10
  47.  
  48. typedef struct
  49. {
  50.     char szMVB[_MAX_PATH];
  51.     VWR vwr;
  52.  
  53.     LPLISTINFO alpLI[MAX_WINDOWS];
  54.  
  55. } VWRINFO, FAR *LPVWRINFO;
  56.  
  57. void ShowMessage(HWND hWnd, int nMessage, int nIcon);
  58. BOOL CALLBACK LibMain(HANDLE hModule, int cbHeap, LPSTR lpchCmdLine);
  59.  
  60. int AddLI(LPVWRINFO lpVwrInfo, LPLISTINFO lpLI);
  61. void RemoveLI(LPVWRINFO lpVwrInfo, LPLISTINFO lpLI);
  62. LPLISTINFO FindLI(LPVWRINFO lpVwrInfo, LPSTR lpszAuthor);
  63. void FreeLI(LPLISTINFO lpLI);
  64.  
  65. BOOL GetPaneSize(LPLISTINFO lpLI, HDC hdc, LPPOINT lppt);
  66. void PrintPane(LPLISTINFO lpLI, LPRENDERINFO lpRI);
  67.  
  68. LONG CALLBACK PaneListProc(HWND hwnd, UINT wMsg, UINT wParam, LONG lParam);
  69. long ReadBaggageFile(LPSTR lpszMVB, LPSTR lpszBagFile, LPSTR lpszText, long lcbMax);
  70. int ReadCmdList(LPSTR lpszMVB, LPLISTINFO lpLI);
  71. int InitPaneAspect(HWND hwnd, LPLISTINFO lpLI, int cx, int cy);
  72. int DoCommand(LPVWRINFO lpVwrInfo, LPSTR lpszCommand);
  73. int InitPane(HWND hwnd, LPEWDATA lpew, LPLISTINFO FAR *lplpLI, int cx, int cy);
  74.  
  75.  
  76. LONG CALLBACK LDLLHandler(UINT msg, LPARAM lParam1, LPARAM lParam2);
  77.